TOOL.Category = 'Mining'
TOOL.Name = 'Devices'
TOOL.Command = nil
TOOL.ConfigName = ''
if (CLIENT and GetConVarNumber("RD_UseLSTab") == 1) then TOOL.Tab = "ESN Customs" end

if not ( RES_DISTRIB == 2 ) then Error("Please Install Resource Distribution 2 Addon.'" ) return end

TOOL.ClientConVar['type'] = 'mining_laser'
TOOL.ClientConVar['model'] = 'models/props_trainstation/TrackLight01.mdl'


cleanup.Register('miningdevices')

if ( CLIENT ) then
	language.Add( 'Tool_miningdevices_name', 'Mineral Collection Device Spawner' )
	language.Add( 'Tool_miningdevices_desc', 'Create Mineral Collection Devices attached to any surface.' )
	language.Add( 'Tool_miningdevices_0', 'Click somewhere to attach a Mineral Collection Device.' )

	language.Add( 'Undone_miningdevices', 'Mineral Collection Device Undone' )
	language.Add( 'Cleanup_miningdevices', 'Mineral Collection Device' )
	language.Add( 'Cleaned_miningdevices', 'Cleaned up all Mineral Collection Devices' )
	language.Add( 'SBoxLimit_mineraldevices', 'Maximum Mineral Collection Devices Reached' )
end


local miningdevice_models = {

	{ 'Mining Laser', 'models/props_trainstation/TrackLight01.mdl', 'mining_laser' },
	{ 'Mineral Scanner', 'models/Slyfo/probe2.mdl', 'mineral_scanner' },
	{ 'Ore Collector', 'models/props_c17/light_industrialbell02_on.mdl', 'ore_collector' },
	
	{ 'Raw Tiberium', 'models//props_wasteland/laundry_washer001a.mdl', 'rawtiberium' },

	{' Test Miner', 'models/props_c17/FurnitureBoiler001a.mdl', 'test_miner'},

	--{ 'Ice laser', models/prop/xxx.xxx', 'ice_laser' },
	--{ 'Ice Collector', 'models/prop/xxx.xxx', 'ice_col' }

}

RD2_ToolRegister( TOOL, miningdevice_models, nil, "miningdevices", 10 )
